<template>
  <div id="app">
    <router-view name="header" />
    <div class="main">
      <router-view />
    </div>
    <router-view name="footer" />
  </div>
</template>

<script>
export default {
  name: 'app'
}
</script>
<style lang="scss">
html,body {
  height: 100%;
}
 #app {
   display: flex;
   flex-direction: column;
   height: 100%;
   .main {
     overflow-x: hidden;
     height: 100%;
   }
 }
</style>
